
package com.platform.modules.mall.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.platform.modules.mall.entity.MallOrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 订单表Dao
 *
 * @author
 * @date 2019-07-05 19:29:18
 */
@Mapper
public interface MallOrderDao extends BaseMapper<MallOrderEntity> {

    /**
     * 查询所有列表
     *
     * @param params 查询参数
     * @return List
     */
    List<MallOrderEntity> queryAll(@Param("params") Map<String, Object> params);

    /**
     * 自定义分页查询
     *
     * @param page   分页参数
     * @param params 查询参数
     * @return List
     */
    List<MallOrderEntity> selectMallOrderPage(IPage page, @Param("params") Map<String, Object> params);

    /**
     * 统计个人中心订单数据
     *
     * @param params
     * @return
     */
    Map<String, Object> queryUserCountMap(Map<String, Object> params);

    MallOrderEntity queryById(String orderId);

    List<MallOrderEntity> export(@Param("params") Map<String, Object> params);

    List<MallOrderEntity> exportByCard(@Param("params") Map<String, Object> params);


    List<MallOrderEntity> selectLimit(@Param("params") Map<String, Object> params);

    int selectCount(@Param("params") Map<String, Object> params);


}
